Color in CSS can be defined in three ways: RGB, RGBA, HSL, and HSLA, hexadecimal color value, and predefined color name. We will discuss this article together today.CSS3. RGB is no stranger to everyone. It is Red Green and Blue. What is
From http://yuxiangjismtp.blog.sohu.com/96152801.html
In color index or rgba mode, each pixel is stored with a certain amount of color data. This quantity is determined by the bit plane in the frame cache. A bit is a single bit of data in a pixel.
V How to convert integers to percentages
As mentioned earlier, the amount of red, green, and blue primary colors is represented by using a percentage value instead of integer values, and the result is the same. 0 represents 0%,255 100%. To make the
RGB color mode (also translated as "Red, green, and blue", which is rarely used) is a color standard in the industry) the changes of the three color channels and their overlapping to obtain a variety of colors, RGB represents the colors of the red,
Description
RGBA (R,g,b,a)
Take value:
R: Red value. Positive integer | Percentage
G: Green value. Positive integer | Percentage
B: The blue value. Positive integer | Percentage
A:alpha transparency. Between values 0~1.
Here is the white with
Set the opacity or RGBA color, opacityrgba color
The opacity declaration is used to set the transparency value of an element. (The transparency value is a decimal point between 0 and 1. 0.5 indicates 50% transparency ).
Opacity features that when
1. Rgba DescriptionRGB: Red R, Green G, blue BRGBA: Red R, Green G, blue B, transparency Alpha Value:R, G, b Value: Positive integer (0 ~ 255) | percent (0% ~ 100%), (the value out of range will be up to its nearest value limit.) Not all
RGBA is an extension of the original RGB, which adds the fourth parameter: alpha channel. The alpha channel argument takes a decimal number between 0 and 1, just like opacity. The advantage of using RGBA instead of opacity is that when you use RGBA,
The opacity declaration is used to set the transparency value of an element. (The transparency value is a decimal point between 0 and 1. 0.5 indicates 50% transparency ).
Opacity features that when opacity sets the transparency value of an element,
Argb
One typeColor mode, That isRGBColor mode attaches alpha (TransparencyChannels are commonly used in the storage structure of 32-Bit Bitmap.
Argb --- Alpha, red, green, blue.
Alpha-image Channel
IfGraphics cardWith 32-bitBus, The
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.